Skip to content

feat(window): edit creators row by row and close the last list re-reads (0.9.0) - #8

Merged
nodemode-ai merged 16 commits into
mainfrom
feat/library-leftovers-0.9.0
Nov 27, 2026
Merged

nodemode-ai merged 16 commits into
mainfrom
feat/library-leftovers-0.9.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat(window): edit creators row by row and close the last list re-reads (0.9.0)

Summary

  • Creators are edited one per row in the item pane (family, given, role, a single name for institutions, move, remove) and saved as one ordered list; the item list's creator column follows.
  • Removing an item the list never loaded, or several at once, now shifts only the rows that change. Cause of the old re-read: once an item is in the trash its place could not be asked for. The position route can now rank a trashed item, and tells an unknown item from an older engine. Two cases still re-read: an item deleted for good, and a never-loaded remove under a text filter.
  • An empty title is refused by the store on interactive create and update, so the command line and the API match the window. Imports are unchanged.
  • A tag rename moves its row to its sorted place at once, and unchanged attributes are no longer rewritten.

Commits

16 commits, release commit last. No hashes, since they change when signed. By area: item pane and creators 5 · item list and the position route 5 · side pane 1 · title rule 1 · docs and logs 3 · release 1.

Version

v0.9.0 (release commit is last). Moved: frontend/package.json, both fields in frontend/package-lock.json, frontend/src/version.ts, backend/app/__init__.py, src-tauri/Cargo.toml and its entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the three files of native/formcite-style, the "Current build version" line in four logs, and a new section in CHANGELOG.md.

Checks

Run by the orchestrator at the head: the engine and command line import; the style regression set, twelve PASS; the window type check. Each of the 15 commits before the release commit was checked out in a copy and imported: 15 of 15. Scans over the new commits: one author and committer, offset -0500, no attribution words, no merge commit, no test file, no em dash or emoji in changed markdown, no raw z-index.

Run by the orchestrator once on the new head, in a private built copy served by the engine, 2,000 imported items, processor slowed 4x, 400 ms latency at about 400 kbit/s, cache off, cold load: five sorts and one reversed, filter to 458 and clear, select, six arrow keys, a title edit (its row updated), scroll. Layout-shift entries: 0 without input, 0 with input. Row pool 55. No page error, no failed request.

Run by agents only, in private built copies under the same throttling: creators add, reorder, role change, institution name, a refused save and remove, with the saved lists read back (0 without input; 0.00085 with input when a row is removed); never-loaded remove, three removed and three added at once in the whole library, a collection, a tag and a filter, with request traces; the tag list with 31 real tags (first fill, scope pick, rename, delete, add); an empty title refused on the command line; a title-less BibTeX, RIS and CSL JSON entry each still importing.

Not run: the desktop shell (it has never been compiled); the CI workflow for these commits; an empty title through the HTTP route (it shares the store function). Known and not fixed: keyboard focus is sometimes lost about a second after a tag rename under throttling; a brand-new tag row shifts the rows under it by 0.0013; 0.0002 on one collection-scope remove.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

A blank or white-space title is refused with the normal 422 line on interactive create and on update that would blank a held title. Import paths keep their old behaviour.
The position route takes include_trashed so it can answer where a just-trashed item sat in the current sort and filter, with the same ordering as the rows route.
A position answer asked with include_trashed carries include_trashed true, so a window can tell an older engine that ignored the flag.
fetchPosition answers unknown for a 404 that carries the engine detail, and null only for a 405, a bare Not Found or a trashed ask the engine did not honour.
Never-loaded removes ask the position route with include_trashed and adds ask for all positions at once, then the cache shifts in one pass and only the holes are read.
The detail client can send a whole fields object in one PATCH, so every creator role goes in one request.
The detail model reads creators from every CSL name role into keyed rows, keeps keys across reloads, and saves the whole ordered list in one PATCH.
The one-line creators field is replaced by a fixed-height scrolling box with a row per creator, role select, institution toggle, reorder and a confirmed remove.
Leaving a creator row from the role select now saves the row, and reordering swaps the two rows' contents in place so no row node moves.
WINDOW.md now says when the list still re-reads after a remove or add.
Both logs record the include_trashed ranking, the unknown id rule and the checked numbers.
…list patches

Tag and collection rows write data and aria-current only when the value changes, a tag rename moves the row to its sorted place at once, and focus is restored when a list patch or rename moves the focused row.
Log the side pane tag measurement and the title-required rule.
Names take the first line and role with the row controls the second, so family and given names stay readable in the narrow pane; the box is a fixed 144 px.
Records how creators map to CSL name roles, what the PATCH carries, and what was measured in a private built copy.
Moves every version site to 0.9.0 and adds the changelog section.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 27, 2026 19:40
@nodemode-ai
nodemode-ai merged commit b15f61b into main Nov 27, 2026
2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/library-leftovers-0.9.0 branch November 27, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant